package com.example.demo.mapper;

import com.example.demo.entity.User;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface UserMapper {
    User findByUserName(String username);

    void create(User user);

    List<User> findAllUser();

    User findById(int id);

    void updateUser(User user);

    void deleteUser(int id);
}
